import { v4 as uuidv4 } from 'uuid';
//读取localStorage中uuid,如果没有则添加
export const uuid = ()=>{
    let id = localStorage.getItem('userTempId')
    if(!id){
        id = uuidv4()
        localStorage.setItem('userTempId',id)
    }
    return id
}